package com.totoro.mapper;

import com.totoro.pojo.MyCoupon;
import com.totoro.pojo.ShopCoupon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author TOTORO
 * @date 2021/7/10 22:20
 */
@Repository
public interface ShopCouponMapper {

    List<MyCoupon> findAllCouponByUid(@Param("uid") int uid);

    List<ShopCoupon> findAllCouponByUidAndSid(@Param("uid") int uid, @Param("sid") int sid);

    List<ShopCoupon> findShopCouponByUidAndSid(@Param("uid")int uid, @Param("sid") int sid);

    List<ShopCoupon> findShopAllCouponBySid(@Param("sid") int sid);

    ShopCoupon findCouponByCouponId(@Param("scId") int scId);

}
